home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / exampleCode / networking / rpcdemo / rminfo_clnt.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-02  |  511 b   |  25 lines

  1. /*
  2.  * Please do not edit this file.
  3.  * It was generated using rpcgen.
  4.  */
  5.  
  6. #include <rpc/rpc.h>
  7. #include <sys/time.h>
  8. #define _RPCGEN_CLNT
  9. #include "rminfo.h"
  10.  
  11. /* Default timeout can be changed using clnt_control() */
  12. static struct timeval TIMEOUT = { 25, 0 };
  13.  
  14. rminfo1 *
  15. rminfoproc_get_1(void *argp, CLIENT *clnt)
  16. {
  17.     static rminfo1 res;
  18.  
  19.     bzero((char *)&res, sizeof(res));
  20.     if (clnt_call(clnt, RMINFOPROC_GET, xdr_void, argp, xdr_rminfo1, &res, TIMEOUT) != RPC_SUCCESS) {
  21.         return (NULL);
  22.     }
  23.     return (&res);
  24. }
  25.